%% FROM: https://wiki.contextgarden.net/Command/startcombination
\input ../../default-cn-cfg.mkvi
%\input lib_subfigure.mkvi

%\useMPlibrary[dum]

\definecombination[mycombi][alternative=text,
color=red,
style=bfd,
align=flushright,
]

%\setuplabel[combination:mycombi][
%    left={第},right={图},
%    numberconversion=1,
%    stopper=!,
%    headstyle=bfd,
%]
\starttext
 

\startcombination[mycombi][nx=2,ny=2]
    {\externalfigure[dummy][width=4cm,height=3cm]}    {aa}
    {\externalfigure[dummy][width=4cm,height=3cm]}    {sdf}
    {\externalfigure[dummy][width=4cm,height=3cm]}    {sdf}
    {\externalfigure[dummy][width=4cm,height=3cm]}     {fgd}
\stopcombination

sdfdsf \par
\startplacefigure[location={here,middle},title=自定义图片组合]
   \startcombination[distance=2mm,after=,nx=2,ny=1]
       \startcontent
           \externalfigure[mill.png]  [width=.2\textwidth]
       \stopcontent
       
       \startcaption
           pic 1
       \stopcaption
       
       \startcontent
           \externalfigure[hacker.jpg][width=.2\textwidth]
       \stopcontent
       
       \startcaption
           pic 2
       \stopcaption
       
   \stopcombination
\stopplacefigure


fdfdsfdsfdfdfd\par
\startcombination[mycombi][nx=2,ny=2]
    {\externalfigure[dummy][width=4cm,height=3cm]}{aa}
    {\externalfigure[dummy][width=4cm,height=3cm]}{sdf}
    {\externalfigure[dummy][width=4cm,height=3cm]}{sdf}
    {\externalfigure[dummy][width=4cm,height=3cm]}{xxx}
\stopcombination
\stoptext
